<template>
  <div>
    <a-card>
      <div id="bmain" style="width: 500px; height: 400px"></div>
    </a-card>
  </div>
</template>
<script>
import * as echarts from "echarts";
export default {
  created() {},
  mounted() {
    var myChart = echarts.init(document.getElementById("bmain"));
    var option = {
      title: {
        text: "链上数据分析",
        left: "center",
        top: "center",
      },
      series: [
        {
          type: "pie",
          data: [
            {
              value: 335,
              name: "A",
            },
            {
              value: 234,
              name: "B",
            },
            {
              value: 1548,
              name: "C",
            },
          ],
          radius: ["40%", "70%"],
        },
      ],
    };
    myChart.setOption(option);
  },
  methods: {},
};
</script>
<style scoped>
</style>